import {reactive} from 'vue'
// import type { FormRules } from 'element-plus'
export const typeRules = reactive({
    typename: [{
      required: true,
      message: '请输入事件类型',
      trigger: 'change',
      
    },
    {
      max: 50,
      message: '名称长度不能超过50个字符',
      trigger: 'change'
    },
    {
      max: 50,
      message: '名称长度不能超过50个字符',
      trigger: 'change',
      validator:(rule: any, value: any, callback: any) => {
        if(value) value = value.replace(/\s+/g, '')
        callback()
      }
    }
    ],
    
  
  })